package routers

import (
	//"crawl_toutiao/controllers"
	"crawl_toutiao/controllers/crawl"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/crawl", &crawl.CrawlController{}, "*:Crawl")
	//beego.Router("/", &controllers.MainController{})
	// ns := beego.NewNamespace("/toutiao/v1",
	// 	beego.NSNamespace("/crawl",
	// 		&crawl.CrawlController{},
	// 	),
	// )

	// beego.AddNamespace(ns)

}
